package cn.jiahua.hospital.service.impl;

import cn.jiahua.hospital.dto.QuickDto;
import cn.jiahua.hospital.mapper.QuickMapper;
import cn.jiahua.hospital.service.QuickService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.xml.ws.Action;
import java.util.List;
@Service
public class QuickServiceImpl implements QuickService {
    @Autowired
    private QuickMapper quickMapper;
    @Override
    public List<QuickDto> getQuickById(Integer AddressId) {
        return quickMapper.getQuickById(AddressId);
    }

    @Override
    public List<QuickDto> getQuickTdepartments(Integer hospitalId, String tdepartmentsName) {
        return quickMapper.getQuickTdepartments(hospitalId,tdepartmentsName);
    }

    @Override
    public List<QuickDto> getQuickName(Integer hospitalId, Integer tdepartmentsId, String name) {
        return quickMapper.getQuickName(hospitalId,tdepartmentsId,name);
    }

    @Override
    public QuickDto getQuick(Integer hospitalId, Integer tdepartmentsId, Integer doctorId) {
        return quickMapper.getQuick(hospitalId,tdepartmentsId,doctorId);
    }
}
